<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>兑出订单</title>
  <link rel="stylesheet" href="./css/reset.css">
  <link rel="stylesheet" href="./css/common.css">
  <link rel="stylesheet" href="./css/cash_out.css">
  <link rel="stylesheet" href="./js/css/layui.css?t=1545041465443" media="all">
  <link rel="stylesheet" href="js/css/mylayui.css">

  <!-- 开发环境版本，包含了有帮助的命令行警告 -->
  <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
  <script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.js"></script>
  <script src="https://cdn.bootcss.com/axios/0.18.0/axios.min.js"></script>
</head>
<body>
<div id="app">

  <div class="cash-out">
    <!--日志弹框-->
    <div class="match-mask">
      <div class="mask"></div>
      <div class="wrap">
        <div class="modal">
          <div class="model-header">
            <span>操作日志</span>
            <i class="closeLog"></i>
          </div>
          <div class="content">
            <ul>
              <li v-for="(item, index) in matchOrderFinishData"
                  :class="finishIndex === index?'finish':''"
              >
                <div class="icon">
                  <span></span>
                </div>
                <div class="text">
                  <p>{{item.title}}</p>
                  <p>
                    <span>{{item.zfk}}</span>
                    <span>{{item.hms}}</span>
                  </p>
                </div>
              </li>
            </ul>
            <a class="actCouponBtn closeLog" href="javascript:;">
              <span>确定</span>
            </a>
          </div>
        </div>
      </div>
    </div>

    <!--兑出设置弹框-->
    <div class="set-mask" v-show="cashOutSet">
    <!--<div class="set-mask" v-show="true">-->
      <div class="mask"></div>
      <div class="modal">
        <form action="#">
          <div class="model-header">
            <span>兑出设置</span>
            <i @click="closeCashOutSet"></i>
          </div>
          <div class="model-content">
            <div class="content">

              <div class="sms">
                <span>*是否需要短信验证：</span>
                <div class="item">
                  <label for="server1" @click="needSmsVerify">
                    <input type="radio" id="server1"
                           class="radio" name="ser" checked="checked">
                    <i></i>
                  </label>
                  <span>是</span>
                </div>
                <div class="item">
                  <label for="server2" @click="withoutSmsVerify">
                    <input type="radio" id="server2"
                           class="radio" name="ser">
                    <i></i>
                  </label>
                  <span>否</span>
                </div>
              </div>

              <div class="verification-code">
                <span>*接收验证码手机：</span>
                <input type="text" v-model="mobile">

                <input id="getCode" class="smsVerify"
                       type="button" value="发送验证码"
                       v-show="smsVerify">
              </div>
              <div class="mms-verification" v-show="smsVerify">
                <span>*短信验证码：</span>
                <input type="text" v-model="smsCode"
                       placeholder="输入短信验证码">
              </div>
              <div class="btn">
                <input type="button" value="确定"
                       @click="submitSmsCode">
                <input type="button" value="取消"
                       @click="closeCashOutSet"
                >
              </div>
            </div>
          </div>
        </form>
      </div>
    </div>

    <div class="sidebar">
      <a class="logo" href="./index.html">NOWPAY</a>
      <a class="sidebar-item"
         v-for="(item,index) in sidebarNavList"
         :class="index === 1?'sidebar-active':''"
         :href="item.href"
      >
        <i :class="item.icon"></i>
        <span>{{item.text}}</span>
      </a>
    </div>

    <div class="main">
      <div class="main-top">
        <div class="top-content">
          <div class="content-left">欢迎使用NOVOXPAY出入金系统！</div>
          <div class="content-right">
            <span id="zfk"></span>
            <span id="watt"></span>
            <span id="hms"></span>
            <span>{{userName}}</span>
          </div>
        </div>
        <a class="top-logout" href="./login.html"></a>
      </div>
      <div class="main-warp">
        <p class="title">兑出订单管理</p>
        <div class="order-state">
          <div class="state-header">
            <div class="header-btn"
                 v-for="(item, index) in orderText" @click="orderTextTab(index)"
                 :class="orderIndex === index ? 'active': ''">
              {{item}}
            </div>
            <i class="header-icon" @click="showCashOutSet"></i>

          </div>
          <div class="state">
            <span>订单状态</span>
            <select>
              <option value="" style="display: none">所有状态</option>
              <option value="done">已完成</option>
              <option value="unpaid">待客户支付</option>
              <option value="payable">待服务商收款</option>
              <option value="uncollected">服务商未收款</option>
              <option value="canceled">已取消</option>
            </select>
            <input type="text" placeholder="经纪商">
            <input type="text" placeholder="服务商">
            <input type="text" placeholder="收款人">
            <input type="text" placeholder="收款账号">
          </div>
          <div class="state">
            <span>时间</span>
            <input type="text">
            <input type="text" placeholder="订单编号">
            <input class="query" type="button" value="查询">
          </div>
        </div>

        <!--表单数据-->
        <div class="order-content">
          <div class="layui-hide" id="demo" lay-filter="order">
          </div>
          <script type="text/html" id="barDemo">
            <a class="layui-btn layui-btn-primary layui-btn-xs"
               lay-event="cash_out_detail">详情</a>
            <a @click="lookLog"
               class="layui-btn layui-btn-primary layui-btn-xs"
               lay-event="cash_out_log">日志</a>
          </script>
        </div>
      </div>
    </div>
  </div>
</div>
</body>
</html>
<script src="./js/cash_out.js"></script>
<script src="./js/read_cache.js"></script>
<script src="./js/layui.js"></script>
<script src="./js/cash_out_page.js"></script>
<script src="./js/log_sub.js"></script>
<script src="./js/sms_verify_code.js"></script>
